﻿using System;

using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Common
{
    public static class StringExtension
    {
        public static bool Contains(string s, string value)
        {
            if (!string.IsNullOrEmpty(s))
            {
#if (PocketPC || Smartphone || WindowsCE)
                return s.IndexOf(value) >= 0;
#else
                return s.Contains(value);
#endif
            }
            return false;
        }
    }
}
